FileRepo: check constructor parameters
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 23 Jan 2012 14:50:54 +0000 (14:50 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 23 Jan 2012 14:50:54 +0000 (14:50 +0000)
commit5eba9f361a97db3f7f5dee2429d8a11ae0bb3101
tree12be4bf574a02a31a140a03001022d01a6acd668
parented90f5548f6e1c9987e178dbe698ee9e2e49ebbb
FileRepo: check constructor parameters

new FileRepo() requires an array of parameters having at least the
'name' and 'backend' key setup.

TODO: 'backend' keyword should probably default to FileBackend.
includes/filerepo/FileRepo.php
tests/phpunit/includes/filerepo/FileRepoTest.php [new file with mode: 0644]